package com.lcxsoft.feign.clients;

import com.lcxsoft.commonutils.R;
import com.lcxsoft.feign.entity.Goods;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-foods")
public interface GoodsClient {

    /**
     * 根据goodsId查询商品
     * @param goodsId
     * @return
     */
    @PostMapping("/foodbox/foodsservice/foodsUrl/queryFoodsById")
    Goods queryGoodsById(@RequestBody String goodsId);
}
